package com.douhao.personal.service;

import com.douhao.personal.model.RoleUserBo;
import com.douhao.personal.model.User;
import com.douhao.personal.model.UserRoleBo;
import com.douhao.personal.util.Page;

import java.util.List;
import java.util.Map;

public interface UserService {

    public User selectById(String id);

    public User login(String email, String pswd);

    Page<User> pageList(User user, int pageNo, int pageSize);

    Map<String,Object> deleteUserById(String ids);

    int deleteByPrimaryKey(Long id);

    Page<UserRoleBo> findUserAndRole(UserRoleBo userRoleBo, int pageNo, int pageSize);

    List<RoleUserBo> selectRoleByUserId(String id);

    Map<String,Object> addRole2User(String userId, String ids);

    Map<String,Object> deleteRoleByUserIds(String userIds);

    int updateByPrimaryKeySelective(User user);
}
